#include<iostream>
#include<unistd.h>
using namespace std;

int main()
{
    cout<<"进程ID(PID):"<<getpid()<<endl;
    cout<<"进程组ID(PGID):"<<getpgid(0)<<endl;
    cout<<"会话ID(SID):"<<getsid(0)<<endl;
    sleep(10);
    return 0;
}